package com.ktjy.web.service.impl;

import com.ktjy.web.dao.BaseDao;
import com.ktjy.web.dao.BrandDao;
import com.ktjy.web.dao.impl.BrandDaoImpl;
import com.ktjy.web.entity.BrandItem;
import com.ktjy.web.entity.Page;
import com.ktjy.web.service.BrandService;

import java.util.List;

public class BrandServiceImpl extends BaseDao implements BrandService {
    BrandDao tmp=new BrandDaoImpl();
    @Override
    public List<BrandItem> selectAll() {
        return tmp.selectAll();
    }

    @Override
    public BrandItem selectById(int id) {
        return tmp.selectById(id);
    }

    @Override
    public int insert(BrandItem brandItem) {
        return tmp.insert(brandItem);
    }

    @Override
    public int update(BrandItem brandItem) {
        return tmp.update(brandItem);
    }

    @Override
    public int deleteById(int id) {
        return tmp.deleteById(id);
    }

    @Override
    public List<BrandItem> page(String name, int pageNo, int pageSize) {
        return tmp.page(name,pageNo,pageSize);
    }

    @Override
    public int count() {
        return tmp.count();
    }
}
